Skip to content

Show citation count on research page#521

Closed
compscidr wants to merge 1 commit intomainfrom
fix/show-citation-count
Closed

Show citation count on research page#521
compscidr wants to merge 1 commit intomainfrom
fix/show-citation-count

Conversation

@compscidr
Copy link
Collaborator

Summary

Display the citation count for each article on the research page. The NumCitations field was already being fetched by the scholar plugin — it just wasn't shown in the templates.

Shows as "N cited" next to the year when the count is non-zero. Updated all three themes and the legacy research template.

Closes #513

Test plan

  • All tests pass
  • Research page shows citation counts next to year for articles that have them

🤖 Generated with Claude Code

Display NumCitations from the scholar cache alongside year for each
article. The data was already being fetched — it just wasn't shown
in the templates. Shows as "N cited" when the count is non-zero.

Updated all three themes (default, minimal, forest) and the legacy
research.html template.

Closes #513

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 17, 2026 04:37
@codecov
Copy link

codecov bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds citation count display to the research/publications pages across all themes by surfacing the already-fetched NumCitations field in the relevant templates.

Changes:

  • Update research page templates to render "N cited" when NumCitations is present.
  • Adjust Bootstrap column layout to include a dedicated citation-count column.
  • Apply the change consistently across minimal, forest, and default themes (including the legacy research.html).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
themes/minimal/templates/page_research.html Adds a citations column alongside year in the minimal theme research page template.
themes/forest/templates/page_research.html Adds a citations column alongside year in the forest theme research page template.
themes/default/templates/research.html Updates the legacy default research template to show citation counts.
themes/default/templates/page_research.html Updates the default theme research page template to show citation counts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

</div>
<div class="col" style="color: #7a937a;">{{.Year}}</div>
<div class="col-2" style="color: #7a937a;">{{.Year}}</div>
<div class="col-2" style="color: #7a937a;">{{ if .NumCitations }}{{ .NumCitations }} cited{{ end }}</div>
Comment on lines +20 to +21
<div class="col-2">{{.Year}}</div>
<div class="col-2">{{ if .NumCitations }}{{ .NumCitations }} cited{{ end }}</div>
Comment on lines +25 to +26
<div class="col-2">{{.Year}}</div>
<div class="col-2">{{ if .NumCitations }}{{ .NumCitations }} cited{{ end }}</div>
Comment on lines +19 to +20
<div class="col-2">{{.Year}}</div>
<div class="col-2">{{ if .NumCitations }}{{ .NumCitations }} cited{{ end }}</div>
@compscidr
Copy link
Collaborator Author

superseeded by #522

@compscidr compscidr closed this Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

research: show citation count

2 participants